#Author : Souvik Datta
#To build for other kernel, modify the variable KDIR and Inc path
PWD := $(shell pwd)
obj-m := ./Src/fusbpushDrv.o
KDIR := /media/DISK320_EXT4/laptop/linux-2.6.36.4
# Comment/uncomment the following line to disable/enable debugging
DEBUG = y
# Add your debugging flag (or not) to CFLAGS
ifeq ($(DEBUG),y)
  DEBFLAGS = -O -g 
else
  DEBFLAGS = -O2
endif
EXTRA_FLAGS = -Werror
EXTRA_CFLAGS += $(DEBFLAGS)
EXTRA_CFLAGS += $(OTHER_FLAGS)
#EXTRA_CFLAGS += -DFUSBPUSH_DBG
EXTRA_CFLAGS += -I$(PWD)/../fusbpush_prj/module/Inc/
default:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean	

